import java.util.Objects;

public class Task {
    
    public static void main(String[] args) {

        Student s1 = new Student("张无忌", 18);
        System.out.println(s1);

        Student s2 = new Student("张无忌", 18);
        System.out.println(Objects.equals(s1, s2));
        System.out.println(s2 == s1);

        Student s3 = new Student("张三丰", 80);
        System.out.println(s3.equals(s1));
        System.out.println(s3 == s1);
    }

}